<template>
	<view class="modal">
		<u-modal :show="show" :title="title" :showCancelButton="showCancelButton" :zoom="zoom" :content="content"
		@confirm="confirm" @cancel="cancel" >
		</u-modal>
		
	</view>
</template>

<script>
	export default {
		name: "myModal",
		props: {
			contents: {
				type: String,
				default: "list"
			}
		},
		data() {
			return {
				show: true,
				showCancelButton: true,
				zoom: true,
				title: '温馨提示',
				content: '',
			};
		},
		mounted() {
		
			this.content = this.$props.contents
		},
		methods:{
			confirm(){
				this.$emit("confirm")
			},
			cancel(){
				this.$emit("cancel")
			},
		},
	}
</script>

<style lang="scss">
	.modal {
		text-align: center;

	}
</style>